//
//  BTCourseDetailHeader.h
//  BaxTer
//
//  Created by wsj2015 on 16/9/2.
//  Copyright © 2016年 陈武琦. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIScrollView+WSJRefresh_MJ.h"
#import "BTCourseModel.h"
#import "HCSStarRatingView.h"

@interface BTCourseDetailHeader : UIView


@property (nonatomic,  strong) BTCourseModel *model;


@property (weak, nonatomic) IBOutlet UIImageView *iconView;

//@property (weak, nonatomic) IBOutlet UIButton *expendBtn;
@property (weak, nonatomic) IBOutlet UIButton *collectionBtn;
@property (weak, nonatomic) IBOutlet UIButton *priseBtn;

@property (weak, nonatomic) IBOutlet UIButton *downloadBtn;
@property (weak, nonatomic) IBOutlet UILabel *titleL;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *learnBtnWidth;

@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
+ (instancetype)deatilHeader;

@property (weak, nonatomic) IBOutlet UIScrollView *scrollView;
@property (nonatomic, copy) void (^pageBack)( );
@property (weak, nonatomic) IBOutlet UIButton *learnBtn;

@property (nonatomic, copy) void (^beginLearn)( );
@property (weak, nonatomic) IBOutlet UILabel *scanNumber;
@property (weak, nonatomic) IBOutlet UIButton *testBtn;
@property (weak, nonatomic) IBOutlet UILabel *scoreL;
@property (weak, nonatomic) IBOutlet UILabel *scoreStatueL;
@property (weak, nonatomic) IBOutlet UILabel *coureseName;

//@property (nonatomic, copy) void (^clickBlock)(BOOL isExpend ,UILabel *contentLable);
@property (weak, nonatomic) IBOutlet UIButton *ratingBtn;
@property (weak, nonatomic) IBOutlet HCSStarRatingView *ratingView;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *iconViewWidth;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *testBtnWidth;

@property (nonatomic, copy) void (^collectBlock)(UIButton *btn );
@property (nonatomic, copy) void (^priseBlock)(UIButton *btn);
@property (nonatomic, copy) void (^dowloadBlock)( );
@property (nonatomic, copy) void (^testBlock)( );
@property (nonatomic, copy) void (^ratingBlock)( );

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bgHegithC;

@property (nonatomic,  assign) BOOL ableTotest;

@property (nonatomic,  assign) BOOL ableToRating;



@end
